package mxmf.entity.content.enums;

public enum CmsType {

    CATEGORY, CATEGORY_ITEM, MOVIE, SERIES;

    public static boolean isWeather(String contentType) {
        return MOVIE.name().equalsIgnoreCase(contentType);
    }

    public String nameOfEnum() {
        return name().toLowerCase();
    }

    public static CmsType valueOfType(String contentType) {
        CmsType[] values = CmsType.values();
        for (CmsType value : values) {
            if (value.nameOfEnum().equalsIgnoreCase(contentType)) {
                return value;
            }
        }
        return null;
    }

}